export function validateUser(rule, value, callback) {
  let reg = /^1[3|4|5|7|8][0-9]{9}$/; // 验证规则
  let regEmail = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
  if (!reg.test(value) && !regEmail.test(value)) {
    callback("请输入正确的手机号码或邮箱！")
  } else {
    callback()
  }
}
